package com.example.seckill.vo;

import com.example.seckill.validator.IsMobile;
import com.example.seckill.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @program: seckill
 * @description: 登录参数
 * @author: KingCrimson
 * @create: 2022-08-06 20:59
 **/

@Data
public class LoginVo {

    //手机号
    @NotNull
    @IsMobile
    private String mobile;

    //密码
    @NotNull
    @Length(min = 32)
    private String password;

}
